package com.repository;

import com.entity.Article;
import com.entity.FollowUser;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

public interface FollowUserRepository extends JpaRepository<FollowUser,Integer>, JpaSpecificationExecutor<Article> {

    Long countByFollowedUser(Integer followedUser);

    List<FollowUser> findAllByFollowUser(Integer userId);


}
